package com.dhcc.sds.busi.service.impl;

import com.dhcc.core.framework.base.service.impl.BaseServiceImpl;
import com.dhcc.sds.busi.dao.SdsDimDataMapper;
import com.dhcc.sds.busi.entity.SdsDimDataEntity;
import com.dhcc.sds.busi.service.ISdsDimDataService;
import com.dhcc.sds.busi.vo.AnalysisSdsPortalVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 记录月份维度portal数据服务层接口实现
 *
 * @author zhangdc
 * @ClassName: SdsDimDataServiceImpl
 * @Description: TODO
 * @date 2022-06-01 10:09:15
 */
@Service("sdsDimDataService")
public class SdsDimDataServiceImpl extends BaseServiceImpl<SdsDimDataMapper, SdsDimDataEntity> implements ISdsDimDataService  {

    @Override
    public List<SdsDimDataEntity> selectNearYearRep(int startMonthCnt, int endMonthCnt, String status, String type, String hospId) {
        return this.baseMapper.selectNearYearRep(startMonthCnt, endMonthCnt, status, type, hospId);
    }

    @Override
    public List<SdsDimDataEntity> selectOrderByType(String dimType, String entityCat) {
        return this.baseMapper.selectOrderByType(dimType, entityCat);
    }

    @Override
    public AnalysisSdsPortalVo selectFeeAndDaysByEntityId(Long entityId) {
        return this.baseMapper.selectFeeAndDaysByEntityId(entityId);
    }

    @Override
    public List<SdsDimDataEntity> selectByDimTypeAndUserLinkDepts(Map<String, Object> params) {
        return this.baseMapper.selectByDimTypeAndUserLinkDepts(params);
    }

    @Override
    public List<SdsDimDataEntity> getUpMonth(Map<String, Object> params) {
        return this.baseMapper.selectUpMonth(params);
    }
}
